package xcmg.device.dao.mapper.split;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.split.RestoreDO;
import xcmg.device.service.vo.split.RestoreVO;

import java.util.List;

@Mapper
public interface RestoreMapper {
    int deleteByPrimaryKey(String id);

    int insert(RestoreDO record);

    RestoreDO selectByPrimaryKey(String id);

    int update(RestoreDO record);

    int updateDel(@Param("orgId")String orgId, @Param("splitIds")List<String> splitIds);

    List<RestoreDO> list(RestoreVO condition);

    int listCount(RestoreVO condition);

    List<RestoreDO> findByIds(@Param("ids")List<String> ids);

    RestoreDO selectBySplitOrder(@Param("splitOrder")String splitOrder, @Param("orgId")String orgId);

    RestoreDO selectByRestoreOrder(@Param("restoreOrder")String restoreOrder, @Param("orgId")String orgId);
}